Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.6k Posts
  • remote operation of qt gui based application on two different systems

    Unsolved
    3
    0 Votes
    3 Posts
    378 Views
    Kent-DorfmanK
    shared VNC connection. app runs in one location but desktop is mirrored to another PC and both can interact with the program. Only requires one instance running...trying to run two mirrored instances is an extremely complex operation requiring a lot of custom programming.
  • How to remove blue selection color from qTableWidget?

    Solved
    7
    0 Votes
    7 Posts
    3k Views
    J
    Hello @mrjj Thanks for helping. The issue has been resolved with setFocusPolicy().
  • Auto-Complete is not working for ROS Packages

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    Pablo J. RoginaP
    @scherzzyyy said in Auto-Complete is not working for ROS Packages: I figured it out! good, please don't forget to mark your post as solved!
  • Determine Line Count for Certain Font w WordWrap at Runtime

    Unsolved
    1
    0 Votes
    1 Posts
    425 Views
    No one has replied
  • pass variable inside of double quote for use in QProcess

    Solved
    5
    0 Votes
    5 Posts
    446 Views
    JonBJ
    @saeid0034 how can i Put arg into double quote "-list=\"" + arg + "\"" Whether this will do what your exe expects I don't know.
  • SVG generator - precision / size

    Unsolved svg qpainter precision
    1
    0 Votes
    1 Posts
    534 Views
    No one has replied
  • cannot write through opened socket

    Unsolved
    13
    0 Votes
    13 Posts
    866 Views
    U
    @Christian-Ehrlicher what about https://doc.qt.io/qt-5/qprocess.html#execute?
  • Performance issue

    Unsolved
    7
    0 Votes
    7 Posts
    814 Views
    N
    @Kent-Dorfman Here's one to start. Why call update if you are not holding a mouse button? To demonstrate the issue in the simplest way. The closest of the application behavior that this example shows is when the right mouse button is pressed. I already reduce the refreshed zone as much as I can, even experimenting fracturing the bounding box of the invalidated area it so that the area to be drawn is smaller. But a window manager is able to drag a window and shows its content moving without lagging behind the mouse. A web browser is able to refresh a whole image when I drag the scrollbar without apparent lag. Is it so strange that I want to do the same? But as I wrote in my other answer, the true issue is the lag between the cursor position and what is redraw. If I put a blank cursor and draw my own, (even if I put it at QCursor::pos and not at the event position as the two rarely differ) the effect is far better.
  • Resizing UI

    Unsolved
    5
    0 Votes
    5 Posts
    414 Views
    artwawA
    @rtvideo From the picture I gather you don't have a layout said on central widget. So whatever you think you did was certainly not the thing I'd advised.
  • Save QMap and QWidgetList

    Solved
    5
    0 Votes
    5 Posts
    502 Views
    naaxN
    @Pablo-J-Rogina No, I haven't. It's my the first time where I'm using the load/save functions. Txt. was the first thing. Can you tell me what I should do?
  • QT Resource not loading in static build of QT 1.15.1

    Solved
    16
    0 Votes
    16 Posts
    991 Views
    R
    I have solved this by running the following command on qt 1.15.1 source C:\Qt\qt-everywhere-src-5.15.1\configure.bat -release -static -opensource -confirm-license -static-runtime -qt-zlib -qt-libjpeg -qt-tiff -qt-webp -qt-libpng -qt-freetype -qt-pcre -qt-harfbuzz -gui -widgets -no-pch -opengl desktop -platform win32-g++ -prefix "C:\Qt\QT-Static" -skip webengine -nomake tools -nomake tests -nomake examples -openssl-linked -I "C:\OpenSSL-Win64\include" -L "C:\OpenSSL-Win64\lib" OPENSSL_LIBS="-lWs2_32 -lGdi32 -lAdvapi32 -lCrypt32 -lUser32" OPENSSL_LIBS_DEBUG="-lssl -lcrypto" OPENSSL_LIBS_RELEASE="-lssl -lcrypto" mingw32-make -j8 mingw32-make install pause in a .ps1 script. this builds qt with openssl linked i used the prebuildt libaries from here https://bintray.com/vszakats/generic/openssl/1.1.1g put in a folder with the libs renamed to crypto.a and ssl.a .
  • Designing custom widget in Designer

    Solved
    8
    0 Votes
    8 Posts
    610 Views
    Pablo J. RoginaP
    @EaccB said in Designing custom widget in Designer: Thanks that's worked! great, so please don't forget to mark your post as solved then!
  • Problem of kits while creating a project

    Solved
    15
    0 Votes
    15 Posts
    4k Views
    Rizlan AnilR
    That's right i took the time to know the role of every component to select the right ones because i was ignorant about libraries functioning .. all i was knowing is the compiler and the debugger ! Thank you so much SGaist for helping out :]
  • Two screens and 125% windows scale

    Unsolved
    1
    0 Votes
    1 Posts
    226 Views
    No one has replied
  • Render Visual Subtree to QImage

    Unsolved
    3
    0 Votes
    3 Posts
    603 Views
    S
    @StefanFabian I am also facing same issue. Actually I have upgraded my project from Qt4 to Qt5 and OGRE from 1.8.0 to 1.11.6. In Old version I am able to see 2D dimensions which I have render on OGRE view using following code but now I am unable to see 2D dimensions on OGRE view so I am not able to understand weather this issue is regarding Qt or OGRE. please suggest any solution // Get the pixel buffer. Ogre::HardwarePixelBufferSharedPtr pixelBuffer = mHudTexture->getBuffer(0,0); // Lock the pixel buffer and get a pixel box. pixelBuffer->lock(Ogre::HardwareBuffer::HBL_DISCARD); const Ogre::PixelBox& pixelBox = pixelBuffer->getCurrentLock(); Ogre::uint8* pDest = static_cast<Ogre::uint8*> (pixelBox.data); // Construct HUD image directly in the texture buffer. { // Create empty transparent image the size of the ogre window. QImage hud(pDest, mHudTexture->getWidth(), mHudTexture->getHeight(), QImage::Format_ARGB32); hud.fill(Qt::transparent); // Use a Qt QPainter to render to the ogre texture. QPainter painter(&hud);
  • Is audio panning possible in QMediaPlayer?

    Unsolved
    3
    0 Votes
    3 Posts
    338 Views
    D
    Thanks for confirming. I've parked the idea for now and will wait to see if any users complain about not having it as an option.
  • Adding an opacity gradient to a QVideoPlayer mask

    Solved
    3
    0 Votes
    3 Posts
    372 Views
    P
    Hi, I've seen your replies come up quite a lot when googling Qt issues, thanks for this reply and the others. As for this problem, it seems I was overcomplicating things. After looking at the composition modes example you linked, I realized I could simply superimpose a QLabel widget on a QVideoPlayer to accomplish what I want. It's simple enough to invert the source image's opacity in an exernal editor and add the custom gradients manually. Cheers!
  • 0 Votes
    3 Posts
    801 Views
    K
    @jsulm, I apologize, I should've mentioned it in the original post: one of the requirements of the project is that we can not use any 3rd party library for the text editor, except for Qt. From what I see in the QScintilla github, it is ported to Qt on top of the TextEdit widget, so I will look further into their implementation to figure out how they've done it.
  • How to use function actualSize() from QIcon?

    Unsolved
    21
    0 Votes
    21 Posts
    3k Views
    T
    @jsulm @mrjj @eyllanesc When I don't show popup I get very strange render. [image: 3ef17b21-33ee-4773-b253-6f63b3ec095e.png] combo->view()->render(&p); label->setPixmap(p); label->move(100,100); EDIT: Or other question: I can add QWidget using: QModelIndex index = combo->model()->index(0,0); combo->view()->setIndexWidget(index, button); And this add to my comboBox QPushButton. I set this button size to 10x10, so it is smaller than my comboBox popup. Now I would like to move this button, but when I moved it using button->move(50,20), it doesn't work. How can I do this? EDIT2: This second question is more important for me. I try using delegate, but with no good results.
  • What is the range of scene()->activecamera->xRotation

    Unsolved
    3
    0 Votes
    3 Posts
    251 Views
    jsulmJ
    @Make-it-GREAT-again Please be more precise: what is scene() here?