Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.3k Posts
  • Pointer to QByteArray as LPBYTE

    Solved
    7
    0 Votes
    7 Posts
    1k Views
    R
    @christian-ehrlicher Yes I know. I was trying to state in my comments that I obtained the byte array and was continuing. I agree that was not clear. I have solved the issue - my test jpg file had a non-compliant embedded profile. Many thanks for taking the time to help!
  • Text is blurred with QQuickPaintedItem

    Unsolved
    2
    0 Votes
    2 Posts
    230 Views
    RatzzR
    @devoo Are you trying to change textureSize of QQuickPaintedItem Class ?
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    17 Views
    No one has replied
  • How to draw graphics like AutoCAD implement coordinate system and zoom

    Solved
    8
    0 Votes
    8 Posts
    1k Views
    mrjjM
    @ofmrew please be sure to post book name in https://forum.qt.io/category/6/announcements :) (when its ready)
  • Qtcreator which is compiled by myself can not run

    Solved
    6
    0 Votes
    6 Posts
    838 Views
    S
    The best method to solve dependence problem is setting the environment variable. ``` C:\qt\qt-5.13.0-deploy\bin ``` But you should know it is a bad method for multiple qt.
  • Which is the correct way to create a pause/waiting in QT?

    Solved
    11
    0 Votes
    11 Posts
    5k Views
    E
    @jonb Okay, I got it. Thanks bro!
  • Show application locally and over WebGL

    Solved
    3
    0 Votes
    3 Posts
    271 Views
    G
    According to this video, it should be possible to run the application both locally and remotely: https://vimeo.com/304349023
  • calling glCopyTexImage2D on QOpenGLTexture raises "immutable" error

    Unsolved
    1
    0 Votes
    1 Posts
    218 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • 0 Votes
    2 Posts
    2k Views
    Chris KawaC
    which style parameter do I have to edit to control the color of item when the widget loses focus? QTreeView::item:active { color: red; } /* When widget has focus*/ QTreeView::item:!active { color: blue; } /* When widget doesn't have focus*/ if I do show-decoration-selected: 1; How do I control decoration color ? It depends on the platform styling. For example on Windows it only colors on hover the little arrow that expands/collapses the branch and that arrow is painted by a system style call so you can't control its color. You can however replace the system styling and change the branch images to your own with any color you like. See Customizing QTreeView for examples.
  • qmake.exe file in the wrong folder, Anaconda 2, how to compile gui

    Solved
    9
    0 Votes
    9 Posts
    987 Views
    SGaistS
    I would rather be on the side of a path clash with Anaconda's installed version of Qt.
  • QT 5.13.0 Static Commercial Build - Requiring D3D12.dll?

    Unsolved commercial static build directx
    2
    0 Votes
    2 Posts
    1k Views
    SGaistS
    Hi, Since you have a commercial licence, I would recommend opening an issue directly from your account as you have access to support.
  • QT-Webassembly - Compile Examples

    Solved
    6
    0 Votes
    6 Posts
    1k Views
    David_001D
    I used the Version you recommended, with the Version 1.38.27 the compilation will successfully. Here a Tutorial to setup: 1. Downloaded qt web installer (linux) from qt.io 2. Installed qt 5.13 (complete) => with sources and Webassembly 3. => Since 5.13 i think there is no need to compile Webassembly on his own like on 5.12 anymore. 4. Than i installed emcc like the instruction on emscription.org said. git clone https://github.com/emscripten-core/emsdk.git cd emsdk git pull ./emsdk install sdk-1.38.27-64bit ./emsdk activate sdk-1.38.27-64bit source ./emsdk_env.sh sudo apt-get install python2.7 sudo apt-get install cmake sudo apt-get install default-jre After i have done that i verified the emcc installation. Everything is fine. 5. Started QtCreator => There is already an QtWebassembly Kit but without an Compiler 6. Added emcc and em++ compiler to QtCreator (custom-compiler) Name: emcc Compiler-Path: ~/work/privat/project/emsdk/emscripten/1.38.27/emcc Path to Make: /usr/bin/make ABI: x86,linux,generic, elf,64bit QT-mkspecs: empty Name: em++ Compiler-Path: ~/work/privat/project/emsdk/emscripten/1.38.27/em++ Path to Make: /usr/bin/make ABI: x86,linux,generic, elf,64bit QT-mkspecs: empty Everything else on Default. 7. Added Compiler to QtWebassembly-Kit 8. DONE
  • This topic is deleted!

    Solved
    1
    0 Votes
    1 Posts
    17 Views
    No one has replied
  • Printing and positioning

    Solved printing scaling
    6
    0 Votes
    6 Posts
    2k Views
    Y
    Finally. This code works fine. void onPrint(QPrinter* printer) { QPagedPaintDevice* device = printer; QPainter painter; painter.begin(device); int w = device->width(); int h = device->height(); painter.drawLine(0,0,w,h); painter.drawLine(0,h,w,0); painter.drawEllipse(QPointF(w/2, h/2), w/10, w/10); painter.drawText(0, h, "pixels"); printer->newPage(); painter.end(); }
  • How to place a button on top in QGraphicsView

    Solved
    2
    0 Votes
    2 Posts
    465 Views
    mrjjM
    Hi yes it is. Just use the view as parent and it will be on top. QPushButton *button = new QPushButton("Im on top!",view); button->move( 100, 0); // use move to move it around
  • 0 Votes
    2 Posts
    253 Views
    R
    Everything seems to work OK without doing anything special as long as I am careful not to mix up which connection is used by which thread, so I am marking this as "solved".
  • MYSQL driver not loaded after I changed the computer

    Solved
    3
    0 Votes
    3 Posts
    272 Views
    FlameF
    Thank you. I wonder what additional dynamic link libraries I need,and I have used depends.exe to find these dll.
  • Changing Qt version from 5.9.1 to 5.12.4 cause a crash in windows 10 ( 3D project)

    Unsolved
    1
    0 Votes
    1 Posts
    358 Views
    No one has replied
  • QImage : convert 8-bit image to 4-bit image

    Unsolved
    3
    0 Votes
    3 Posts
    543 Views
    T
    Thanks for your response. :)