Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. I have a black rectangle
Forum Updated to NodeBB v4.3 + New Features

I have a black rectangle

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 454 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    void CustomPlotZoom::mouseMoveEvent(QMouseEvent * event)
    {
    if (click_right == true)
    {
    mRubberBand->setGeometry(QRect(mOrigin, event->pos()).normalized());

    }

    else { QCursor cursor1;
    x = xAxis->pixelToCoord(event->pos().x());
    y = yAxis->pixelToCoord(event->pos().y());
    g= cursor1.pos();

    //setToolTip(QString("%1 , %2").arg(x).arg(y));
    
    
    
     a= QString("%1 , %2").arg(x).arg(y);
     //double y1 = yAxis->range().minRange;
    

    //emit sign_move();

    QToolTip::showText(g,a);

    }}

    when with the cursor I go out of the widget I have a black rectangle..why?

    raven-worxR 1 Reply Last reply
    0
    • ? A Former User

      void CustomPlotZoom::mouseMoveEvent(QMouseEvent * event)
      {
      if (click_right == true)
      {
      mRubberBand->setGeometry(QRect(mOrigin, event->pos()).normalized());

      }

      else { QCursor cursor1;
      x = xAxis->pixelToCoord(event->pos().x());
      y = yAxis->pixelToCoord(event->pos().y());
      g= cursor1.pos();

      //setToolTip(QString("%1 , %2").arg(x).arg(y));
      
      
      
       a= QString("%1 , %2").arg(x).arg(y);
       //double y1 = yAxis->range().minRange;
      

      //emit sign_move();

      QToolTip::showText(g,a);

      }}

      when with the cursor I go out of the widget I have a black rectangle..why?

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @vale88
      a black rectangle where?

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      ? 1 Reply Last reply
      0
      • raven-worxR raven-worx

        @vale88
        a black rectangle where?

        ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        @raven-worx when I move..I solved changing the event

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved