Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.6k Posts
  • Declare the given statement in h file and initialize in cpp file

    Solved
    9
    0 Votes
    9 Posts
    1k Views
    VRoninV
    @Kira said in Declare the given statement in h file and initialize in cpp file: session_inception = std::unique_ptrtensorflow::Session(tensorflow::NewSession(tensorflow::SessionOptions())); You can simplyfy to session_inception.reset(tensorflow::NewSession(tensorflow::SessionOptions())); no need to call the move constructor
  • How to add transparency image in QT5.5.1 ?

    Unsolved
    12
    0 Votes
    12 Posts
    1k Views
    R
    @mrjj the transparency is working now in qt 5.5.1. The code is given below, QLabel* bg = new QLabel(&w); bg->setGeometry(100, 100, 200, 200); bg->show(); bg->setText("Hello"); bg->setStyleSheet("background-color: yellow;"); QPushButton* trans = new QPushButton(&w); trans->setGeometry(100, 100, 200, 200); QPixmap pixmap("transparent.png"); QIcon ButtonIcon(pixmap); trans->setIcon(ButtonIcon); trans->setIconSize(trans->size()); trans->setStyleSheet("border: None"); // It will make the image button as transparent trans->show(); If I have changed background color of QLabel, it will transparent to the image button window. I hope it may help. Thank you all.
  • Get error while building the vtk using qt libraray ?

    Unsolved
    3
    0 Votes
    3 Posts
    313 Views
    VRoninV
    Is the error coming from building the VTK library or from using the VTK library in your project? If it's the first then post OS, compiler, architecture, Qt Version and Cmake version used. If it's the second please show us your project file
  • Raspberry pi 3 compiling Qt 5.11.0 problem

    Unsolved
    6
    0 Votes
    6 Posts
    6k Views
    S
    @lirik90 Worked for me. Thanks!
  • cropping image on QLabel using mouseEvent

    Unsolved
    16
    0 Votes
    16 Posts
    3k Views
    D
    @mrjj ok i ll check it out,,,thanks
  • My Qt creator broke ?

    Solved
    15
    0 Votes
    15 Posts
    3k Views
    R
    @aha_1980 I voted
  • 0 Votes
    21 Posts
    12k Views
    U
    Solution for this issue has been found in the below forum. Thanks all for the support. https://forum.qt.io/topic/97995/can-qt-access-windows-sdk-functions-in-a-third-party-static-libraries/3
  • Can Qt access windows SDK functions in a third party static libraries?

    Solved
    5
    0 Votes
    5 Posts
    2k Views
    U
    @Christian-Ehrlicher win32:LIBS += -L"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.17763.0\um\x86" -lUser32 I added this and the issues solved. Thank you @Christian-Ehrlicher for the support.
  • what is the "../" meaning in 'LIBS = -L../plugins' when load plugins

    Unsolved
    3
    0 Votes
    3 Posts
    453 Views
    P
    @wrosecrans thanks for your help!
  • QToolButton text and image position set // help me

    Solved
    3
    0 Votes
    3 Posts
    1k Views
    K
    Thank you for your reply.
  • multiple definition of qInitResources_

    Solved
    4
    0 Votes
    4 Posts
    2k Views
    T
    @Ratzz and @Christian-Ehrlicher thanks to both of you for replying. I've tried the example in qt dir and now it works. I also had to add these lines in CMakeLists.txt : qt5_add_resources(RSC completer.qrc) # if next line is not added -> error but it will still work set_property(SOURCE qrc_completer.cpp PROPERTY SKIP_AUTOMOC ON) add_executable(completer ${SOURCE} ${RSC})
  • Qt OpenGL Quad not showing

    Unsolved
    2
    0 Votes
    2 Posts
    539 Views
    mrjjM
    Hi and welcome to the forums My best bet is that your openGL is so new that glBegin(GL_QUADS); is no longer supported in the core profile/openGL 3.3 ( i think) Its part of the so called old fixed pipeline. It might be possible to request older profile but would be better just to use modern openGl. https://learnopengl.com/Introduction https://learnopengl.com/Getting-started/Hello-Triangle
  • Class FIFinderSyncExtensionHost

    Solved
    6
    0 Votes
    6 Posts
    3k Views
    SGaistS
    Hi, From the looks of the error, your application is indeed innocent and that's one thing Apple needs to fix.
  • Q_PROPERTY for single item in map?

    Solved
    6
    0 Votes
    6 Posts
    1k Views
    M
    Yea, I spent a good chunk of time staring at the example and try to get it working in my context but it didn't quite work out. I eventually just made an invokable getter method that takes the index and using signals from the c++ class I tell the QML file when to update it's respective values with the getter method into my list.
  • Deploying Application with QtVirtualKeyboard

    Unsolved
    5
    0 Votes
    5 Posts
    775 Views
    R
    @dheerendra I'm working on checking all of the plugin libraries and I think I found my problem. I had to enable plugin debugging and it's failing to load because it cannot find the plugin xcb. So I copied over the libqxcb.so to the other system but still ran into problems. The system I'm trying to get it running on is a 32-bit system but the libqxcb.so is 64-bit. This also seems to be true for the libqtvirtualkeyboardplugin.so in the /plugins/platforminputcontext. Now I'm wondering if there's a version of libqxcb.so that's even 32-bit or if the qtvirtualkeyboard can be loaded onto 32-bit systems. I'm still looking into this part as this is something I overlooked.
  • How to write a top-to-bottom text?

    Unsolved
    10
    0 Votes
    10 Posts
    2k Views
    mrjjM
    Hi Well TextEdit can sort of do it using @J-Hilk idea. [image: A8w6hQ.png] using [image: Iqhnx0.png] [image: Ikm46l.png]
  • how to write qt ui for legacy c application

    Unsolved
    2
    0 Votes
    2 Posts
    308 Views
    VRoninV
    QProcess
  • using third party libraries in qt framework

    Unsolved
    2
    0 Votes
    2 Posts
    367 Views
    VRoninV
    You can use the libraries directly. See http://doc.qt.io/qt-5/third-party-libraries.html and http://doc.qt.io/qtcreator/creator-project-qmake-libraries.html
  • Difference between Qt 5.6.x and 5.7.x ; floating precision

    Solved
    6
    0 Votes
    6 Posts
    908 Views
    D
    @kshegunov said in Difference between Qt 5.6.x and 5.7.x ; floating precision: Thanks a lot to everyone.
  • Automatically adding scroll bar?

    Solved
    7
    0 Votes
    7 Posts
    1k Views
    R_IrudezuR
    @mrjj Yes you were right, now it's ok, i need to use QToolBox instead of QWidget. Thanks for help :)