Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.3k Posts
  • how to print a file url using qDebug or other api to locate file in qtcreator?

    Unsolved
    13
    0 Votes
    13 Posts
    874 Views
    J.HilkJ
    @QtTester to my knowledge file:// is mandatory to mark it as a file link I don't know how you would hide it.
  • displaying QString variable in Application Output

    Solved
    5
    0 Votes
    5 Posts
    623 Views
    Swati777999S
    @JonB It worked for me too. Thanks.
  • How to rotate these text?

    Unsolved
    10
    0 Votes
    10 Posts
    655 Views
    eyllanescE
    @Emon-Haque Your arguments may or may not be valid, but I thought to help you check the repository but having everything in a zip I get discouraged, bye, hopefully someone will help you.
  • Memory usage increases with window size?

    Unsolved
    5
    0 Votes
    5 Posts
    495 Views
    oPryzeLPO
    @SGaist said in Memory usage increases with window size?: Hi, The answer is likely the raster engine of the widgets module and the age of your Qt version. You should consider updating to something more recent that has high DPI support to compare. I can't, I need to compile with MSVC2010 and 5.6 is the latest version that supports it from what I've read.
  • Same question: Extra blank space when using Qt::CustomizeWindowHint

    Unsolved
    3
    0 Votes
    3 Posts
    252 Views
    K
    @mrjj said in Same question: Extra blank space when using Qt::CustomizeWindowHint: setWindowFlag Thanks. My platform is Win10. I konw Qt::FramelessWindowHint works well without blank, but lacks the native window side drag which CustomizeWindowHint remains. Although I could implement window side drag with FramelessWindowHint ,dragging operation works not so well as QT window with CustomizeWindowHint. It's annoying. So, my question is, is there any way to hide the titleBar and blank and remain the native window side drag?
  • How to create an HTTP server with QNetworkAccessManager?

    Unsolved
    2
    0 Votes
    2 Posts
    318 Views
    SGaistS
    Hi and welcome to devnet, You have it wrong, QNetworkAccessManager is on the client side of the communication. Depending on what you want to do on your server, you should consider using something like Cutelyst.
  • QSqlDatabase and Sql Server Native Client

    Solved
    4
    0 Votes
    4 Posts
    948 Views
    M
    Interesting... Appreciate the responses.
  • QMap is having issue with quint32 key in Qt 4.8.7

    Solved
    8
    0 Votes
    8 Posts
    718 Views
    jsulmJ
    @ankit-thakar Is it QtCreator? If it is you could file a bug in Qt bug tracker, but I doubt it will be solved as Qt4 reached end of life long time ago.
  • QT Windows GUI main window freezes while running

    Unsolved
    12
    0 Votes
    12 Posts
    2k Views
    jsulmJ
    @Ravi0101 Then please run through debugger untill it hangs and then check the stack trace to see where it hangs...
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    13 Views
  • Issues with QtNFC

    Unsolved
    7
    0 Votes
    7 Posts
    639 Views
    M
    @mchinand Well, I installed Qt 5.15 and launched the official demo. The output is: qt.nfc.neard: dbus object manager invalid qt.nfc.neard: Error getting managed objects qt.nfc.neard: dbus object manager invalid or adapter path invalid I'm pretty sure there is no neard on the system because it seems it's not available in Ubuntu 20.04:
  • 0 Votes
    2 Posts
    721 Views
    JonBJ
    @CJha So it's obviously internal. Ignore it, and no you won't be able to alter what qApp->topLevelWidgets() returns, just remove any QComboBoxPrivateContainers.
  • How to call a function in onClick.

    Unsolved
    4
    0 Votes
    4 Posts
    572 Views
    sierdzioS
    No problem, happy coding. The good news about QML is that once you get over the initial confusion it becomes really convenient and easy to learn.
  • Problem while playing songs after deployment

    Solved
    6
    0 Votes
    6 Posts
    542 Views
    C
    OK after thinking about the possibilities, I decided to remake a part of my code to include the audio player into the main class instead of a thread. So now it works.
  • How to resize Window to content?

    Unsolved
    1
    0 Votes
    1 Posts
    206 Views
    No one has replied
  • Some small questions about qt container detachment.

    Solved
    15
    0 Votes
    15 Posts
    2k Views
    KroMignonK
    @PikaCat said in Some small questions about qt container detachment.: I found the answer on stackoverflow https://stackoverflow.com/questions/29578219/range-based-for-loop-vs-regular-iterator-for-loop. end() is evaluated only once in the begining of range for Sorry, for me it was obvious :( Thanks anyway:) appreciate that. Your welcome.
  • This topic is deleted!

    Unsolved
    0
    0 Votes
    0 Posts
    5 Views
    No one has replied
  • How to remove extra space around QGraphicsItem and round top corners of Rectangle?

    Unsolved
    3
    0 Votes
    3 Posts
    276 Views
    D
    @mchinand, for the pie, I used that technique to put some extra margin around the pie. In this case I, probably, would have to use the boundingRect instead of m_rect, in paint, to get the desired output.
  • what is the better way to render a pdf in qtwidget?

    Unsolved
    4
    0 Votes
    4 Posts
    380 Views
    1
    pretty nice solution that Poppler, i will try it.. thanks
  • QGraphicsTextItem dynamic resizing

    Unsolved qt5 qgraphicstextit resize dynamic
    1
    0 Votes
    1 Posts
    669 Views
    No one has replied