shared folder Error:
Virtualbox guest additions: modprobe vboxsf failed
$ sudo apt-get
install virtualbox-guest-dkms
$ sudo apt-get
install linux-headers-virtual
#Example #Error #Virtualbox #linux
top
command and realized that my app is causing a CPU utilization of 100%.MainWidget::MainWidget(QWidget *parent)
: QWidget(parent)
{
...
QPixmap bg(BACK_IMG_PATH);
bg.fill(Qt::transparent);
QPalette p(palette());
p.setBrush(QPalette::Background, bg);
setAutoFillBackground(true);
setPalette(p);
...
}
paintEvent
and using QPainter like this:void MainWidget::paintEvent(QPaintEvent *event)
{
QPainter painter(this);
painter.drawImage(QRectF(this->x(), this->y(), this->width(), this->height()), QImage("img/bg_1280_720.png"));
}
#define BACK_IMG_PATH "/img/bg_1280_720.png"
QPixmap bg(BACK_IMG_PATH);
bg.fill(Qt::transparent);
QPalette p(palette());
p.setBrush(QPalette::Background, bg);
setAutoFillBackground(true);
setPalette(p);
#define BACK_IMG_PATH "background-image:url(/img/bg_1280_720.png)"
QLabel *labelBg = new QLabel(this);
labelBg->setStyleSheet(BACK_IMG_PATH);
labelBg->setGeometry(this->geometry());
종류 | 0x1234의 표현 | 0x12345678의 표현 |
---|---|---|
빅 엔디언 | 12 34 | 12 34 56 78 |
리틀 엔디언 | 34 12 | 78 56 34 12 |
미들 엔디언 | - | 34 12 78 56 또는 56 78 12 34 |
59 65 41 48
로 표현된다.2A 00 00 00
이 되는데, 이 표현에서 앞의 두 바이트 또는 한 바이트만 떼어 내면 하위 16비트 또는 8비트를 바로 얻을 수 있다. 반면 32비트 빅 엔디언 환경에서는 하위 16비트나 8비트 값을 얻기 위해서는 변수 주소에 2바이트 또는 3바이트를 더해야 한다. 보통 변수의 첫 바이트를 그 변수의 주소로 삼기 때문에 이런 성질은 종종 프로그래밍을 편하게 하는 반면, 리틀 엔디언 환경의 프로그래머가 빅 엔디언 환경에서 종종 실수를 일으키는 한 이유이기도 하다.🏙️ Apartment Buying Guide 2025: Shocking Red Flags You Should NEVER Ignore! 🚨 Are you thinking about buying an apartment in 2025? 🏢 It’...