Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.3k Topics 456.0k Posts
  • Stylesheet in QTreeWidget Change Arrow Images from .qrc

    Solved
    8
    0 Votes
    8 Posts
    1k Views
    S
    Ok I solved the problem. I added a prefix to the images and now use :/arrows/xxxx.png and it works fine! Thanks for the help everyone!!
  • QTextFormat::FullWidthSelection but for multiple lines?

    Unsolved
    2
    0 Votes
    2 Posts
    342 Views
    T
    I think I figured out a solution. Could probably be a bit cleaner, but this seems to work ok so far. Basically am iterating through the block's lines and do full width selection for each. QTextCursor cursor = textCursor(); cursor.clearSelection(); cursor.movePosition(QTextCursor::StartOfBlock); for (int i = 0; i < cursor.block().lineCount(); i++) { QTextEdit::ExtraSelection selection; QColor lineColor = QColor(Qt::lightGray); selection.format.setBackground(lineColor); selection.format.setProperty(QTextFormat::FullWidthSelection, true); selection.cursor = cursor; extraSelectionList.append(selection); if (i + 1 < cursor.block().lineCount()) cursor.movePosition(QTextCursor::Down); }
  • Sample C /C++ code for "SUBDIRS" ?

    Moved Unsolved
    1
    0 Votes
    1 Posts
    131 Views
    No one has replied
  • Do I have to get the license to use some of the features and where do I put it

    Unsolved
    2
    0 Votes
    2 Posts
    126 Views
    SGaistS
    Hi, Which license are you referring to ? What is the relation with Qt Creator ? Which examples are you talking about ?
  • 0 Votes
    8 Posts
    389 Views
    SGaistS
    Can you provide a minimal compilable example that shows this behaviour ?
  • How to change the colour of a QTextBlock in a QTextEdit

    Solved
    4
    0 Votes
    4 Posts
    821 Views
    O
    Found the issue. It is not a QT one but the block parameter in the calling function was coming from a const QTextEdit so it can change anything in it. Yhank you for the time you spent to answer me. Olivier
  • Qt Bluetooth Heartrate-server example error

    Unsolved
    13
    0 Votes
    13 Posts
    1k Views
    A
    I have changed the permissions for BLE advertising and I'm able to both use bluetoothctl and hcitools without root permissions. But still with qt creator I get the error "advertising error" if I don't use an external terminal, but using it I'm not able to perform debugging (it starts and immediatly say "debugging has finished")
  • Receiving system D-Bus signals and responding to them

    Unsolved dbus qdbus
    1
    0 Votes
    1 Posts
    473 Views
    No one has replied
  • PHP post via QWebEngine ?

    Unsolved
    6
    0 Votes
    6 Posts
    480 Views
    D
    Interesting, I'm gonna check this. Thanks a lot !
  • Mcu and Serial Communications

    Unsolved serial widget qt5
    7
    0 Votes
    7 Posts
    1k Views
    D
    @jsulm Yes i know. Thank you for answering.
  • Add big resources to exe without External Binary Resources in VS2019

    Unsolved
    5
    0 Votes
    5 Posts
    718 Views
    S
    @raven-worx as I said I use qt in visual studio I check resource document and change both setting in visual studio and qrc itself, but size doesn't change at all [image: d3f46213-4047-44d0-991e-fdd5bc0bc5cd.png] is there any problem in above config?
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    29 Views
    No one has replied
  • Uncknowed Delay in Fade in/ou animation with QPropertyAnimation

    Unsolved
    18
    0 Votes
    18 Posts
    1k Views
    J
    @Chris-Kawa Thanks for suggestion , i will try this !
  • CMake Undefined Reference to `QGraphicsItem:: ...

    Solved
    7
    0 Votes
    7 Posts
    1k Views
    K
    Thank you both for your swift replies. I'll update my toolchain so that it uses the MinGW compiler provided with the Qt installation. I am unavailable to reply for a few hours but will update this thread when I can. EDIT: This worked! Many thanks!
  • 0 Votes
    7 Posts
    563 Views
    L
    Thank you!
  • Finding data(QString) of item in QAbstactTableModel

    Solved
    13
    0 Votes
    13 Posts
    912 Views
    K
    @Christian-Ehrlicher Yes, we have proceeded with all the proposals. Also, this program is being used too well after completion. Thank you!!
  • How to create responsive designs in QT(For desktops)

    Solved
    10
    0 Votes
    10 Posts
    6k Views
    D
    If you do not want t use FlowLayout, there is another way to do it. In the resizeEvent of the frame, you will still emit a signal. If the signal is emitted, you will break the layout, then make a new layout with new arrangement of your widgets. For the easiness you can put your widgets to be shown in the grid into a list. Do not use the designer for this job.
  • SetProcessDpiAwareness

    Unsolved
    2
    0 Votes
    2 Posts
    401 Views
    jsulmJ
    @l0511 Can you provide more information? What is your app doing? Do you call SetProcessDpiAwareness or does it come from somewhere in Qt? Does your app misbehave because of this? Did you try with a more recent Qt version?
  • C++ Qt BusyIndicator

    Unsolved
    2
    0 Votes
    2 Posts
    173 Views
    jsulmJ
    Removed suspicious link
  • QPSQL driver for QT 6.0.1 at Linux POSTGRESQL

    Unsolved
    2
    0 Votes
    2 Posts
    271 Views
    Christian EhrlicherC
    @zeroptr said in QPSQL driver for QT 6.0.1 at Linux POSTGRESQL: What is next I have to get rid of this.. Build the Qt postgresql as described in the documentation maybe?